<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Encryption: Nortel Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Encryption
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.2 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_nortel.html','');});
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_nortel-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Nortel Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Adapter between the <a class="el" href="class_nortel.html" title="Adapter between the Nortel and the intern interface.">Nortel</a> and the intern interface.  
 <a href="class_nortel.html#details">More...</a></p>

<p><code>#include &lt;Nortel.h&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Nortel:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_nortel.png" usemap="#Nortel_map" alt=""/>
  <map id="Nortel_map" name="Nortel_map">
<area href="class_object.html" title="Common Baseclass for all other classes." alt="Object" shape="rect" coords="0,0,49,24"/>
<area href="class_i_nortel.html" title="Interface which is used by the company Nortel." alt="INortel" shape="rect" coords="59,0,108,24"/>
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a8c6a62562c1cd748ac5a93291e1ea5e3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_nortel.html#a8c6a62562c1cd748ac5a93291e1ea5e3">Decipher</a> (<a class="el" href="class_i_nortel.html#a9ecb82e872c4aa0399709686c55d3a5d">TEncoding</a> enc, std::string const &amp;fileName)</td></tr>
<tr class="memdesc:a8c6a62562c1cd748ac5a93291e1ea5e3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Decrypts a file and stores the result in another file.  <a href="#a8c6a62562c1cd748ac5a93291e1ea5e3"></a><br/></td></tr>
<tr class="separator:a8c6a62562c1cd748ac5a93291e1ea5e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24b73e801917c8f35a94d06b80f49f9f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_nortel.html#a24b73e801917c8f35a94d06b80f49f9f">Encipher</a> (<a class="el" href="class_i_nortel.html#a9ecb82e872c4aa0399709686c55d3a5d">TEncoding</a> enc, std::string const &amp;fileName)</td></tr>
<tr class="memdesc:a24b73e801917c8f35a94d06b80f49f9f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Encrypts a file and stores the result in another file.  <a href="#a24b73e801917c8f35a94d06b80f49f9f"></a><br/></td></tr>
<tr class="separator:a24b73e801917c8f35a94d06b80f49f9f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_i_nortel"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_i_nortel')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_i_nortel.html">INortel</a></td></tr>
<tr class="memitem:aeb60382c8d6e27343dcb9f62cc8e6659 inherit pub_methods_class_i_nortel"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aeb60382c8d6e27343dcb9f62cc8e6659"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_nortel.html#aeb60382c8d6e27343dcb9f62cc8e6659">~INortel</a> ()</td></tr>
<tr class="memdesc:aeb60382c8d6e27343dcb9f62cc8e6659 inherit pub_methods_class_i_nortel"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destructor of <a class="el" href="class_i_nortel.html" title="Interface which is used by the company Nortel.">INortel</a> Pure virtual destructor so that the destructor of inherited classes is called. <br/></td></tr>
<tr class="separator:aeb60382c8d6e27343dcb9f62cc8e6659 inherit pub_methods_class_i_nortel"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pub_types_class_i_nortel"><td colspan="2" onclick="javascript:toggleInherit('pub_types_class_i_nortel')"><img src="closed.png" alt="-"/>&#160;Public Types inherited from <a class="el" href="class_i_nortel.html">INortel</a></td></tr>
<tr class="memitem:a9ecb82e872c4aa0399709686c55d3a5d inherit pub_types_class_i_nortel"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_i_nortel.html#a9ecb82e872c4aa0399709686c55d3a5d">TEncoding</a> { <b>eRSA</b>, 
<b>eCaesar</b>
 }</td></tr>
<tr class="memdesc:a9ecb82e872c4aa0399709686c55d3a5d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines which Crypto algorithms should be used. <br/></td></tr>
<tr class="separator:a9ecb82e872c4aa0399709686c55d3a5d inherit pub_types_class_i_nortel"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Adapter between the <a class="el" href="class_nortel.html" title="Adapter between the Nortel and the intern interface.">Nortel</a> and the intern interface. </p>
<p>The class <a class="el" href="class_nortel.html" title="Adapter between the Nortel and the intern interface.">Nortel</a> implements the Interface <a class="el" href="class_i_nortel.html" title="Interface which is used by the company Nortel.">INortel</a> and calls the necessary functions of our intern interface. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a8c6a62562c1cd748ac5a93291e1ea5e3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Nortel::Decipher </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_i_nortel.html#a9ecb82e872c4aa0399709686c55d3a5d">TEncoding</a>&#160;</td>
          <td class="paramname"><em>enc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>fileName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Decrypts a file and stores the result in another file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">enc</td><td>Determines which Crypto algorithm to be used. </td></tr>
    <tr><td class="paramname">fileName</td><td>The file to be decrypted. The function uses the CrypterFactor to instantiate a crypto algorithm object depending on the parameter enc. It then tries to open and read the whole file and encrypts it with the first instantiated crypto algorithm. After decrypting it stores the data in a file with the name fileName minus the suffix which is specified by the crypto algorithm. (If the filename has that suffix) </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::Exception</td><td>If an error happens when opening, closing or reading a file. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_i_nortel.html#a439da4b468409cccdc11155f248cd86e">INortel</a>.</p>

</div>
</div>
<a class="anchor" id="a24b73e801917c8f35a94d06b80f49f9f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void Nortel::Encipher </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_i_nortel.html#a9ecb82e872c4aa0399709686c55d3a5d">TEncoding</a>&#160;</td>
          <td class="paramname"><em>enc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::string const &amp;&#160;</td>
          <td class="paramname"><em>fileName</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Encrypts a file and stores the result in another file. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">enc</td><td>Determines which Crypto algorithm should be used. </td></tr>
    <tr><td class="paramname">fileName</td><td>The file to be encrypted. The function uses the CrypterFactor to instantiate a crypto algorithm object depending on the parameter enc. It then tries to open and read the whole file and encrypts it with the first instantiated crypto algorithm. After encrypting it stores the data in a file with the name fileName plus a suffix which is specified by the crypto algorithm. </td></tr>
  </table>
  </dd>
</dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">std::Exception</td><td>If an error happens when opening, closing or reading a file. </td></tr>
  </table>
  </dd>
</dl>

<p>Implements <a class="el" href="class_i_nortel.html#a58e321ef029c26b24468a110c9c98bce">INortel</a>.</p>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_nortel.html">Nortel</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.2 </li>
  </ul>
</div>
</body>
</html>
